import request from '../utils/request';
// 获取列表接口
export const getAttributesList = (id, params) => request({
  url: `categories/${id}/attributes`,
  params,
});
// 添加列表接口
export const addAttributes = (id, data) => request({
  url: `categories/${id}/attributes`,
  data,
  method: 'post',
});
// 新增属性列表接口
export const addxiaoAttributes = (id, attrId, data) => request({
  url: `categories/${id}/attributes/${attrId}`,
  data,
  method: 'put',
});
// 删除参数
export const delAttributes = (id, attrId) => request({
  url: `categories/${id}/attributes/${attrId}`,
  method: 'delete',
});
